import request from '@/utils/request'
export default{
    //添加小节
    addVideo(eduVideo){
        return request({
            url:`/eduservice/video/addVideo`,
            method:'post',
            data: eduVideo
        })
    },

    //获取小节id
    getVideoInfo(videoId){
        return request({
            url:`/eduservice/video/getVideoInfo/${videoId}`,
            method:'get',
        })
    },
    //修改章节
    updateVideo(eduVideo){
        return request({
            url:`/eduservice/video/updateVideo`,
            method:'post',
            data: eduVideo
        })
    },
    //删除小节
    deleteVideo(id){
        return request({
            url:`/eduservice/video/deleteVideo/${id}`,
            method:'delete',
        })
    },

    //删除视频
    removeAlyVideo(id){
        return request({
            url:`/eduvod/filevod/removeaAlyVideo/${id}`,
            method:'delete',
        })
    },
}